﻿@model Gagnatek.WebSite.Models.MediaTypes
@{
    ViewBag.Title = "Details";
}
<h2>
     Details</h2>
<fieldset>
    <legend>@Html.DisplayFor(model => model.name)</legend>
    <div class="displat-field">
    <ul>
        @foreach (var cat in Model.Categories)
        {
            <li>@Html.DisplayFor(modelItem => cat.name)</li>
        }
        </ul>
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id = Model.id }) |
    @Html.ActionLink("Back to List", "Index")
</p>
